﻿{extend name="public:base" /}

{block name="css"}
<link rel="stylesheet" type="text/css" href="/static/layui/css/layui.css"/>
<link rel="stylesheet" type="text/css" href="__ADMIN__/css/style.css">
{/block}

{block name="content"}
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox ">
                <div class="ibox-content">

                    <form method="post">
                        <div class="box-item">
                            <div class="form-group row">
                                <label class="col-sm-1 col-form-label">可用余额</label>
                                <div class="col-sm-3">
                                    <input type="text" class="form-control" value="￥10000.00" readonly>
                                </div>
                            </div>
                        </div>
                        <div class="box-item">
                            <div class="form-group row">
                                <label class="col-sm-1 col-form-label">目标账户</label>
                                <div class="col-sm-3">
                                    <input type="text" class="form-control" value="Dave-123456-中国银行" readonly>
                                </div>
                            </div>
                        </div>
                        <div class="box-item">
                            <div class="form-group row">
                                <label class="col-sm-1 col-form-label">划拨金额（元）</label>
                                <div class="col-sm-3">
                                    <input type="number" class="form-control">
                                </div>
                            </div>
                        </div>
                        <div class="box-item">
                            <div class="form-group row layui-form">
                                <label class="col-sm-1 col-form-label">消息通知</label>
                                <div class="col-sm-3">
                                    <input type="checkbox" name="is_notice" title="通知相关人员">
                                </div>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>

                        <div class="form-group row">
                            <div class="col-sm-4 col-sm-offset-2">
                                <button type="button" class="btn btn-w-m btn-primary ajax-post">确认划拨</button>
                            </div>
                        </div>
                    </form>
                </div>

                <div class="ibox-content" style="margin-top: 20px;">
                    <div class="table-responsive">
                        <h3>最近划拨记录</h3>
                        <div class="hr-line-solid"></div>
                        <table class="table table-striped">
                            <thead>
                            <tr>
                                <th>流水单号</th>
                                <th>时间</th>
                                <th>类型</th>
                                <th>金额</th>
                                <th>状态</th>
                                <th>目标账户</th>
                            </tr>
                            </thead>
                            <tbody>
                            {volist name="list" id="vo"}
                            <tr>
                                <td>{$vo.sn}</td>
                                <td>{$vo.update_time|timeFormat}</td>
                                <td></td>
                                <td>￥{$vo.money}</td>
                                <td>{$vo.status|doAllocateStatus}</td>
                                <td>{$vo.bank_username} - {$vo.bank_name} - {$vo.bank_number}</td>
                                <td>
                                    <a href="{:url('allocateDetail', ['id' => $vo.id])}" class="btn btn-white btn-sm"><i class="iconfont icon-24"></i> 查看
                                    </a>
                                </td>
                            </tr>
                            {/volist}
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

{/block}

{block name='js'}
<script src="__STATIC__/layui/layui.js"></script>
{/block}